package handler

import (
	"art-mng-sys/model"
	"github.com/gin-gonic/gin"
)

func List(c *gin.Context) {
	var articel []*model.User
	model.DB.Find(&articel)

	c.JSON(200, gin.H{
		"code": 400,
		"msg":  "查询成功",
		"data": articel,
	})
	return

}
